/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.semodbus.bean;

/**
 *
 * @author Rainbow
 */
public class PLCDevice implements Cloneable
{
    String ip;
    int port;
    int address;
    int slaveID;
    int count;
    int virtualStartPos;
    int virtualEndPos;
    int deviceSeq;
    String deviceType;

    public String getDeviceType()
    {
        return deviceType;
    }

    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }
    

    public int getDeviceSeq()
    {
        return deviceSeq;
    }

    public void setDeviceSeq(int deviceSeq)
    {
        this.deviceSeq = deviceSeq;
    }

    
    public int getVirtualStartPos()
    {
        return virtualStartPos;
    }

    public void setVirtualStartPos(int virtualStartPos)
    {
        this.virtualStartPos = virtualStartPos;
    }

    public int getVirtualEndPos()
    {
        return virtualEndPos;
    }

    public void setVirtualEndPos(int virtualEndPos)
    {
        this.virtualEndPos = virtualEndPos;
    }

    
    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getIp()
    {
        return ip;
    }

    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public int getPort()
    {
        return port;
    }

    public void setPort(int port)
    {
        this.port = port;
    }

    public int getAddress()
    {
        return address;
    }

    public void setAddress(int address)
    {
        this.address = address;
    }

    public int getSlaveID()
    {
        return slaveID;
    }

    public void setSlaveID(int slaveID)
    {
        this.slaveID = slaveID;
    }

    @Override
    public Object clone()
    {
        PLCDevice device = null;
        try
        {
            device = (PLCDevice)super.clone();
        } catch (CloneNotSupportedException e)
        {
            e.printStackTrace();
        }
        return device;
    }
    
    
    
}
